<% @page_title = @committee.name %>
<%= auto_discovery_link_tag(:rss, {:controller => "committees", :action => "show", :format => "rss"}) %>
<h1><%= @committee.name %></h1>

<% if @committee.councillors.size > 0 %>
  <p>There are <%= pluralize(@committee.councillors.size, "member") %> of this committee:</p>
  <% content_tag("ul") do %>
    <% @committee.councillors.each do |councillor| %>
      <%= list_link_to councillor.full_name, councillor %>
    <% end %>
  <% end %>
<% end %>

<h2>There have been <%= pluralize(@committee.meetings.size, "meeting")%> of this committee</h2>

<% content_tag("ul") do |ul| %>
	<% @committee.meetings.each do |meeting| %>
		<% content_tag("li") do |li| %>
			<%= link_to meeting.date.to_s(:long), meeting_path(meeting) %>
		<% end %>
	<% end %>
<% end%>